import request from '@/utils/request'

// 查询oauth2客户端信息列表
export function listClentDetails(query) {
  return request({
    url: '/user-center/clentDetails/page',
    method: 'post',
    data: query
  })
}

// 查询oauth2客户端信息详细
export function getClentDetails(clientId) {
  return request({
    url: '/user-center/clentDetails/' + clientId,
    method: 'get'
  })
}

// 新增oauth2客户端信息
export function addClentDetails(data) {
  return request({
    url: '/user-center/clentDetails',
    method: 'post',
    data: data
  })
}

// 修改oauth2客户端信息
export function updateClentDetails(data) {
  return request({
    url: '/user-center/clentDetails',
    method: 'put',
    data: data
  })
}

// 删除oauth2客户端信息
export function resetSecret(data) {
  return request({
    url: '/user-center/clentDetails/resetSecret',
    method: 'put',
    data: data
  })
}

// 删除oauth2客户端信息
export function delClentDetails(clientId) {
  return request({
    url: '/user-center/clentDetails/' + clientId,
    method: 'delete'
  })
}
